<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{echo: lp{m_u_center};/}</title>
<link rel="stylesheet" type="text/css" href="skin/{echo: $SYSINFO['templates'];/}/css/modules.css">
<link rel="stylesheet" type="text/css" href="skin/{echo: $SYSINFO['templates'];/}/css/layout.css">
<link rel="stylesheet" type="text/css" href="skin/{echo: $SYSINFO['templates'];/}/css/style.css">
<script type="text/javascript" src="skin/{echo: $SYSINFO['templates'];/}/js/changeStyle.js"></script>
<script type="text/javascript" src="skin/{echo: $SYSINFO['templates'];/}/js/userchangeStyle.js"></script>
<style type="text/css">
td span { color:red; }
#reg_step { width:770px; height:29px; margin: 12px auto; line-height: 29px; }
#reg_step ol li { width: 154px; float: left; padding:0 0 3px; font-size: 14px; font-weight: bold; background-color:#ececec; color:#333; text-align:center; }
#reg_step ol li span, #reg_step ol li strong { display: block; text-align:center; }
#reg_step ol li.current { background:url(skin/default/images/steps_bg.gif) left top no-repeat; padding-top:4px; margin-top:-4px; color:#FFF; }
#reg_step ol li.last_current { background-color: #F6A248; color: #fff; background-position: right -145px; }
td { text-align:left; }
</style>
</head>
<body onload="menu_style_change('shop_my_order');changeMenu();">
{inc: require("shop/index_header.php");/}
<div class="site_map"> {echo:lp{m_current_position};/}<A href="index.php">{echo:$SYSINFO['sys_name'];/}</A>/<a href="modules.php">{echo:lp{m_u_center};/}</a>/&nbsp;&nbsp;{echo: lp{m_order_info};/} </div>
<div class="clear"></div>
{inc: require("modules/left_menu.php");/}
<div class="main_right">
	<div class="right_top"></div>
	<div class="cont">
		<div class="title_uc">
			<h3><span class="tr_op"><a href="modules.php?app=shop_my_order" >{echo: lp{m_recver_order};/}</a>&nbsp;&nbsp;</span>{echo: lp{m_order_info};/}</h3>
			<hr />
		</div>
		<div id="reg_step">
			<ol>
				{sta: if($info['order_status']==0) [exc]}
				<li class="current"><strong>1、{echo:lp{m_buy_mk_order};/}</strong></li>
				<li class=""><span>2、{echo:lp{m_buyer_pay};/}</span></li>
				<li class=""><span>3、{echo:lp{m_check_put_goods};/}</span></li>
				<li class=""><span>4、{echo:lp{m_buyer_checkget_goods};/}</span></li>
				<li class=""><span>5、{echo:lp{m_thisorder_cancel};/}</span></li>
				{sta: } elseif($info['order_status']==3) [exc]}
				<li class=""><strong class="first">1、{echo:lp{m_buy_mk_order};/}</strong></li>
				<li class=""><span>2、{echo:lp{m_buyer_pay};/}</span></li>
				<li class=""><span>3、{echo:lp{m_check_put_goods};/}</span></li>
				<li class=""><span>4、{echo:lp{m_buyer_checkget_goods};/}</span></li>
				<li class="current"><span>5、{echo:lp{m_com_deal};/}</span></li>
				{sta: } elseif($info['transport_status']==1) [exc]}
				<li class=""><strong class="first">1、{echo:lp{m_buy_mk_order};/}</strong></li>
				<li class=""><span>2、{echo:lp{m_buyer_pay};/}</span></li>
				<li class="current"><span>3、{echo:lp{m_check_put_goods};/}</span></li>
				<li class=""><span>4、{echo:lp{m_buyer_checkget_goods};/}</span></li>
				<li class=""><span>5、{echo:lp{m_com_deal};/}</span></li>
				{sta: } elseif($info['pay_status']==1) [exc]}
				<li class=""><strong class="first">1、{echo:lp{m_buy_mk_order};/}</strong></li>
				<li class="current"><span>2、{echo:lp{m_buyer_pay};/}</span></li>
				<li class=""><span>3、{echo:lp{m_check_put_goods};/}</span></li>
				<li class=""><span>4、{echo:lp{m_buyer_checkget_goods};/}</span></li>
				<li class=""><span>5、{echo:lp{m_com_deal};/}</span></li>
				{sta: } else  [exc]}
				<li class="current"><strong class="first">1、{echo:lp{m_buy_mk_order};/}</strong></li>
				<li class=""><span>2、{echo:lp{m_buyer_pay};/}</span></li>
				<li class=""><span>3、{echo:lp{m_check_put_goods};/}</span></li>
				<li class=""><span>4、{echo:lp{m_buyer_checkget_goods};/}</span></li>
				<li class=""><span>5、{echo:lp{m_com_deal};/}</span></li>
				{end:if/}
			</ol>
		</div>
		<table width="100%" border="0" cellspacing="0">
			<!--	<tr>
				<th style="background:#FFF2E6; color:#F67A06;" colspan="4">&nbsp;&nbsp;{echo: lp{m_goods_info};/}</th>
			</tr>-->
			<tr>
				<th  width="320">{echo: lp{m_goods_name};/}</th>
				<th width="115">{echo: lp{m_goods_price};/}</th>
				<th width="90">{echo: lp{m_buy_num};/}</th>
				<th width="100">{echo: lp{m_transport_price};/}</th>
			</tr>
			{sta:$num =count($info['order_goods']); foreach($info['order_goods'] as $k=>$v)[loop]}
			<tr>
				<td><a href="goods.php?id={echo: $v['goods_id'];/}" target="_blank" >{echo: $v['goods_name'];/}</a></td>
				<td style="text-align:center;">{echo: $v['goods_price'];/}{echo: lp{m_yuan};/}</td>
				<td style="text-align:center;">{echo: $v['order_num'];/}</td>
				{sta:if($k==0)[exc]}
				<td class="border_l " style="text-align:center;"  rowspan="{echo:$num;/}">{echo: $info['transport_price'];/}{echo: lp{m_yuan};/}</td>
				{end:if/} </tr>
			{end:foreach/}
			<tr>
				<td class="border_l" colspan="4">&nbsp;&nbsp;{echo: lp{m_order_thisbuyprice};/}:<span>{echo: $info['order_value'];/}</span>{echo: lp{m_yuan};/}
					{sta:if($info['order_status']==1 && $info['pay_status']==0) [exc]}
					<form action="do.php?act=shop_order_priceedit" method="post" onsubmit="return checkForm();">
						&nbsp;&nbsp;{echo: lp{m_order_editprice};/}<input id="price" name="price" value="{echo: $info['order_value'];/}" style="width:70px;" /> <input type="hidden" name="order_id" value="{echo: $order_id;/}" /> <input type="submit" name="btn" value="{echo: lp{m_order_editprice};/}" />
					</form>
					{end:if/} </td>
			</tr>
		</table>
		<h3 class="ttlm_02">{echo: lp{m_order_getsting};/}</h3>
		<table  class="form_table_02" width="100%" border="0" cellspacing="0">
			
			<tr>
				<th  width="100px">{echo: lp{m_contact};/}:</th>
				<td>{echo: $info['consignee'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_address};/}: </th>
				<td> {echo: $info['mobile'];/} , {echo: $info['telphone'];/}  , {echo: $areas[$info['province']];/} {echo: $areas[$info['city']];/} {echo: $areas[$info['district']];/} , {echo: $info['address'];/} , {echo: $info['zipcode'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_mobile};/}:</th>
				<td>{echo: $info['mobile'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_telphone};/}:</th>
				<td>{echo: $info['telphone'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_email};/}:</th>
				<td>{echo: $info['email'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_stayarea};/}:</th>
				<td>{echo: $areas[$info['province']];/} {echo: $areas[$info['city']];/} {echo: $areas[$info['district']];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_address};/}:</th>
				<td>{echo: $info['address'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_zipcode};/}:</th>
				<td>{echo: $info['zipcode'];/}</td>
			</tr>
		</table>
		<h3 class="ttlm_02">{echo: lp{m_order_info};/}</h3>
		<table  class="form_table_02" width="100%" border="0" cellspacing="0">
			<tr>
				<th>{echo: lp{m_order_message};/}:</th>
				<td>{echo: $info['message'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_payment_message};/}:</th>
				<td>{echo: $info['pay_message'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_alipay_tradeno};/}:</th>
				<td>{echo: $info['trade_no'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_order_time};/}:</th>
				<td>{echo: $info['order_time'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_pay_time};/}:</th>
				<td>{echo: $info['pay_time'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_receive_time};/}:</th>
				<td>{echo: $info['receive_time'];/}</td>
			</tr>
		</table>
		<h3 class="ttlm_02">{echo: lp{m_order_poststing};/}</h3>
		<table  class="form_table_02" width="100%" border="0" cellspacing="0">
			<tr>
				<th>{echo: lp{m_shipping_name};/}:</th>
				<td>{echo: $info['shipping_name'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_shipping_no};/}:</th>
				<td>{echo: $info['shipping_no'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_shipping_type};/}:</th>
				<td>{echo: $info['shipping_type'];/}</td>
			</tr>
			<tr>
				<th>{echo: lp{m_shipping_time};/}:</th>
				<td>{echo: $info['shipping_time'];/}</td>
			</tr><tr>
				<th>操作：</th>
				<td><span class="tr_op">
					{sta: if($info['order_status']==1 && $info['pay_status']==0) [exc]}
							<a href="do.php?act=shop_order_del&id={echo: $info['order_id'];/}" onclick="return confirm('{echo: lp{m_sure_thisorder};/}');">{echo: lp{m_cancelorder};/}</a>
					{end:if/}
					{sta: if($info['transport_status']==0 && $info['order_status']==1 && $info['pay_status']==1) [exc]}
						{sta: if($payment_info[$info['pay_id']]['pay_code']=='alipay') [exc]}
							<a href="plugins/alipay/comput.php?id={echo: $info['order_id'];/}" target="_blank">{echo: lp{m_sure_shippingnow};/}</a>
						{sta: } else [exc]}
							<a href="modules.php?app=shop_delivery_add&order_id={echo: $info['order_id'];/}" onclick="javascript:if(confirm('{echo: lp{m_clicksure_s};/}')){return true;} else {return false;}">{echo: lp{m_sure_shippingnow};/}</a>
						{end:if/}
					{end:if/}
					{sta: if($info['transport_status']==0 && $info['order_status']==1 && $info['pay_status']==2) [exc]}
						<a href="modules.php?app=shop_back_money&order_id={echo: $info['order_id'];/}">退款</a>
					{end:if/}
					{sta: if($info['protect_status']==1 || $info['protect_status']==2) [exc]}
						<a href="modules.php?app=shop_protect_rights&id={echo: $info['order_id'];/}"><font color='red'>查看维权</font></a>
					{end:if/}
					<a href="modules.php?app=shop_order_view&order_id={echo: $info['order_id'];/}" title="{echo: lp{m_view_orderinfo};/}">
					{echo: lp{m_view_orderinfo}2;/}</a>
					<!-- 订单评价 开始 -->
					{sta: if($info['transport_status']==1 && $info['order_status']==3 && $info['seller_reply']==0) [exc]}
						<a href="modules.php?app=shop_credit_add&id={echo: $info['order_id'];/}&t=seller" >{echo: lp{m_evaluate};/}</a>
					{sta:}else if($info['transport_status']==1 && $info['order_status']==3 && $info['seller_reply']==1)[exc]}
						{echo:lp{m_already_valuation};/}
					{end:if/}
					<!-- 订单评价 结束 -->
					</span>
				</td>
			</tr>
		</table>
	</div>
</div>
<div class="clear"></div>
{inc: require("shop/index_footer.php");/}
<script>
function checkForm() {
	var price = document.getElementsByName("price")[0];
	var re=/^(\d+)$/;
	if(!re.test(price.value)){
		alert("{echo: lp{m_price_error};/}");
		return false;
	}
	return true;
}
</script>
</body>
</html>